var express = require('express');
var router = express.Router();
const getRankingController = require("../controllers/getRanking_controller")
router.get("/getRanking", (req, res) => {
    var {
        page,
        pagesize,
        className,
        grade,
        semester,
        SecondaryCollege
    } = req.query
    console.log(page,pagesize);
    getRankingController.getRankinglist({
        page,
        pagesize,
        className,
        grade,
        semester,
        SecondaryCollege
    }, ["查询失败", "查询成功"], (result) => {
        res.json(result)
    })
})
module.exports = router;